﻿/**
 * Created by zywy on 2023-06-06
 * All rights reserved.
 */

#pragma once
#ifndef MIDDLEWARE_FUNCTION_H
#define MIDDLEWARE_FUNCTION_H

#include "BaseObject.h"

class Function : public BaseObject {
public:
    Function(void *ptr = nullptr) {
        data = ptr;
        _type = FUNCTION;
    };

    void setFunction(void *ptr) {
        data = ptr;
    }

    void *getFunction() {
        return data;
    }
};

#endif
